package cn.wangyazhu.SettlementRecord.service;

import cn.wangyazhu.SettlementRecord.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UserRepository extends JpaRepository<User, Long> {
    @Query("from User u where u.name=:name")
    User findByUsername(@Param("name") String name);
}
